package com.zte.claa.inficombo.csa.app.model.redis;

public class DevModelChgData {
	// 策略对象变化标志.
	public static final byte OPFLAG_ADD = 1;
	public static final byte OPFLAG_MOD = 2;
	public static final byte OPFLAG_DEL = 3;
	
	// 变更的devmodel对象类型。
	public static final byte DT_DEVTP_BASE= 1;
	public static final byte DT_DATAMODEL = 2;
	public static final byte DT_CMDMODEL  = 3;
	public static final byte DT_FMMODEL   = 4;
	public static final byte DT_DEV       = 5;
	public static final byte DT_PRDB_PARA = 6;
	public static final byte DT_DEV_EXTDATA = 7;
	public static final byte DT_DEVTP_EXT = 8;
	// 逻辑资源的index模型
	public static final byte DT_RES_INDEXMODEL = 9; 
	
	private byte opflag;
	private byte dt;
	// devtype,dev, datamodel,cmdmodel,alarmmodel.
	private Object data;
	
	public DevModelChgData(){
		
	}

	public byte getOpflag() {
		return opflag;
	}

	public void setOpflag(byte opflag) {
		this.opflag = opflag;
	}

	public byte getDt() {
		return dt;
	}

	public void setDt(byte dt) {
		this.dt = dt;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}
	
	public String toString(){
		StringBuffer sb = new StringBuffer();
		sb.append("datatype=").append(dt).append(", ");
		sb.append("opflag=").append(opflag).append(", ");
		sb.append("data=").append(String.valueOf(data));
		return sb.toString();		
	}
}
